package class1;

import java.util.Enumeration;
import java.util.Properties;

public class demo3 {
    public static void main(String[] args) {
        Properties properties=new Properties();
        properties.setProperty("Background-color","red");
        properties.setProperty("Font-size","14px");
        properties.setProperty("Language","chinese");

        Enumeration<?> enumeration = properties.propertyNames();
        while (enumeration.hasMoreElements()){
            String key = (String) enumeration.nextElement();
            String value= (String) properties.get(key);
            System.out.println(key+":"+value);

        }


    }
}
